#include <stdio.h>

int main(int argc, char const *argv[])
{
    int x;
    int n = 0;
    
    scanf("%d", &x);
    n++;
    x /= 10;
    // 循环，必须要能跳出
    while ( x > 0 )
    {
        n++;
        x /= 10;
    }
    printf("%d\n", n);
    
    return 0;
}